
export const getCarMenu = (car, mClieck) => {
  var contextMenu = new AMap.ContextMenu()

  contextMenu.addItem('行驶路径', function() {
    mClieck(0, car)
  }, 0)

  return contextMenu
}

export const getOrderMenu = (order, mClieck) => {
  var contextMenu = new AMap.ContextMenu()

  contextMenu.addItem('調派車輛', function() {
    mClieck(0, order)
  }, 0)

  contextMenu.addItem('匹配車輛', function() {
    mClieck(1, order)
  }, 0)
  contextMenu.addItem('查看路線規劃', function() {
    mClieck(2, order)
  }, 0)
  return contextMenu
}
